// 引入模板
import Vue from 'vue'
import Vuex from 'vuex'
import home from './modules/home'
import search from './modules/search'
import detail from './modules/detail'
import user from './modules/user'
import trade from './modules/trade'

// 注册模块
Vue.use(Vuex)

// 定义方法
const store = new Vuex.Store({
    modules: {
        home,
        search,
        detail,
        user,
        trade
    }
})

// 导出
export default store